package com.example.service;

import com.example.pojo.Employee;
import com.example.pojo.Nation;
import com.example.pojo.PoliticsStatus;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * @program: personnel-management
 * @description:
 * @author: ChenZhiXiang
 * @create: 2019-07-16 16:16
 **/
public interface IEmpService {

    List<Nation> getAllNations();

    List<PoliticsStatus> getAllPolitics();

    int addEmp(Employee employee);

    Long getMaxWorkID();

    List<Employee> getEmployeeByPage(Integer page, Integer size,
                                     String keywords, Long politicId,
                                     Long nationId, Long posId, Long jobLevelId,
                                     String engageForm, Long departmentId, String beginDateScope);

    Long getCountByKeywords(String keywords, Long politicId, Long nationId, Long posId,
                            Long jobLevelId, String engageForm, Long departmentId, String beginDateScope);

    int updateEmp(Employee employee);

    boolean deleteEmpById(String ids);

    List<Employee> getAllEmployees();

    int addEmps(List<Employee> emps);

    List<Employee> getEmployeeByPageShort(Integer page, Integer size);
}
